package com.tuling.service;

import com.tuling.domain.User;

import java.util.List;

public interface UserService {

    // 注册
    public User add(User user);

    // 登录
    public User login(String str, String pwd);

    // 查询所有
    public List<User> findAll();

    public int update(User user);

    public int del(int id);

    public User findById(int id);
}
